package com.hjdb88.simplemvc.controller;

import com.hjdb88.simplemvc.annotation.Controller;
import com.hjdb88.simplemvc.annotation.Qualifier;
import com.hjdb88.simplemvc.annotation.RequestMapping;
import com.hjdb88.simplemvc.service.TestService;

/**
 * @author hjdb88
 * @date 2020/10/17
 */
@Controller("testController")
@RequestMapping("/test")
public class TestController {
    @Qualifier("testService")
    private TestService testService;

    @RequestMapping("/test")
    public String test() {
        System.out.println("执行TestController.test()");
        return testService.test();
    }
}
